<?php
set_time_limit(0);
header("Content-type:text/html;charset=utf-8");
include_once dirname(dirname(__FILE__)) . '/nn_logic/nl_common.func.php';
$dc = nl_get_dc(array(
    'db_policy' => NL_DB_WRITE,
    'cache_policy' => NP_KV_CACHE_TYPE_MEMCACHE
));
$int_limit = '10000';
$limit = 10;
$sql="delete FROM `nns_mgtvbk_import_epg_log` WHERE nns_create_time <='2017-10-08' limit {$int_limit}";

for ($i=0;$i<$limit;$i++)
{
    nl_execute_by_db($sql, $dc->db());
}
die("ok");



